#@token()
<input type="hidden" class="layui-input" name="incomeDetail.orderId" value="#(incomeDetail.orderId??)"/>
<input type="hidden" class="layui-input" name="incomeDetail.detailId" value="#(incomeDetail.detailId??)"/>
<div class="layui-row layui-col-space1 task-row">
	#@colStart("支付编码",12)
	<input id="payCode" type="text" class="layui-input" name="incomeDetail.payCode" value="#(incomeDetail.pay_code??)"/>
    #@colEnd()
</div>
<div class="layui-row layui-col-space1 task-row">
    #@colStart("支付类型",12)
    <input id="payType" type="text" class="layui-input" name="incomeDetail.payType" value="#(incomeDetail.pay_type??)"/>
    #@colEnd()
</div>
<div class="layui-row layui-col-space1 task-row">
    #@colStart("支付账号",12)
    <input id="account" type="text" class="layui-input" name="incomeDetail.account" value="#(incomeDetail.account??)"/>
    #@colEnd()
</div>
<div class="layui-row layui-col-space1 task-row">
    #@colStart("支付金额",12)
    <input type="text" class="layui-input" name="incomeDetail.sumMoney" value="#(incomeDetail.sum_money??)"/>
    #@colEnd()
</div>
<div class="layui-row layui-col-space1 task-row">
    #@colStart("支付方",12)
    <input id="payMen" type="hidden" class="layui-input" name="incomeDetail.payMen" value="#(incomeDetail.pay_men??)"/>
    <input id="payMenName" type="text" class="layui-input" name="incomeDetail.payMenName" value="#(incomeDetail.payMenName??)"/>
    #@colEnd()
</div>
<div class="layui-row layui-col-space1 task-row">
    #@colStart("收款方",12)
    <input id="receiveMen" type="hidden" class="layui-input" name="incomeDetail.receiveMen" value="#(incomeDetail.receive_men??)"/>
    <input id="receiveMenName" type="text" class="layui-input" name="incomeDetail.receiveMenName" value="#(incomeDetail.receiveMenName??)"/>
    #@colEnd()
</div>
<div class="layui-row layui-col-space1 task-row">
    #@colStart("状态",12)
    <input id="status" type="text" class="layui-input" name="incomeDetail.status" value="#(incomeDetail.status??)"/>
    #@colEnd()
</div>
<div class="layui-row layui-col-space1 task-row">
	#@colStart("交易时间",12)
	<input id="transTime" type="text" class="layui-input" name="incomeDetail.transTime" value="#(incomeDetail.trans_time??)"/>
	#@colEnd()
</div>

#@submitButton2(3)

<!-- 弹窗展示物品树形层次 -->
#define layuiFunc()
    // 支付方式输入框点击事件
    $("#payCode").on('click',function () {
        openDialogReturn("支付方式选择窗口","#(path)/erp/info/payment/index",false,null,null,null,function (res) {
            var payCode = res.payCode;
            var payType = res.payType;
            var account = res.account;
            $("#payCode").val(payCode);
            $("#payType").val(payType);
            $("#account").val(account);
        });
    })
    // 支付方输入框点击事件
    $("#payMenName").on('click',function () {
        openDialogReturn("支付方选择窗口","#(path)/portal/core/sysUser/index",false,null,null,null,function (res) {
            var userCode = res.userCode;
            var userName = res.userName;
            $("#payMen").val(userCode);
            $("#payMenName").val(userName);
        });
    })
    // 收款方输入框点击事件
    $("#receiveMenName").on('click',function () {
        openDialogReturn("收款方选择窗口","#(path)/erp/info/supplier/index",false,null,null,null,function (res) {
            var supplierId = res.supplierId;
            var supplierName = res.supplierName;
            $("#receiveMen").val(supplierId);
            $("#receiveMenName").val(supplierName);
        });
    })

    laydate.render({
        elem: '#transTime',
        type: 'datetime'
    });

#end
